<!DOCTYPE html>
<html lang="zh">
 <head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Document</title>
 </head>
 <body>
	 
  <video src="blob:https://ffxx99.com/021caf79-695c-4e95-bc5f-b6bfe4d65d54"></video>
  <script type="text/javascript">

  //  var opt = {
  //   // audio: true,
	 // video: {
		//  width: 375,
		//  height: 603,
  //   }
  //  };
  
  
 var opt = { audio: true, video: { facingMode: { exact: "environment" } } }
  
   navigator.mediaDevices.getUserMedia({ audio: true, video: { facingMode: { exact: "environment" } } })
    .then(function(mediaStream) {
     var video = document.querySelector('video');
     video.srcObject = mediaStream;
     video.onloadedmetadata = function(e) {
      video.play();
     };
    })
    .catch(function(err) {
     console.log(err.name + ": " + err.message);
    }); // always check for errors at the end.
  </script>
 </body>
</html>